/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package botlab.gui.actionlistener;

import botlab.gui.GUI;
import botlab.gui.library.LibraryFrame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.WindowConstants;

/**
 *
 * @author Quentin
 */
public class LibActionListener implements ActionListener
{
    private GUI gui;
    
    public LibActionListener(GUI gui)
    {
        this.gui = gui;
    }

    public void actionPerformed(ActionEvent e)
    {
        JFrame libFrame = gui.getHelpFrame();
        libFrame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        libFrame.setVisible(true);
    }
    
}
